<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 3 开发一款软件，根据公式（身高-108）*2=体重，可以有10斤左右的浮动。来观察测试者是否是标准体重
        var height= parseInt(prompt("请输入你的身高"));
        var youWeight = parseInt(prompt("请输入你的体重"));
        var weight=(height - 108) * 2;
        var a = weight + 10;
        var b = weight - 10;
        if (youWeight > a || youWeight < b) {
            console.log("你的体重不达标")
        }
        if (b<=youWeight<=a){
            console.log("你的体重达标")
        }
    </script>
</body>
</html>